export class Ocean {
    id = 0
    name = ''
    itemId = 0
}

export let oceanData: Array<Ocean> = []

export let oceanMap = new Map<number, Ocean>()

export let oceanIdNameMap = new Map<number, string>()

export let loadOceanData = () => {
    for (let i of defaultData) {
        oceanData.push(Object.assign(new Ocean(), i))
    }
    for (let ocean of oceanData) {
        oceanMap.set(ocean.id, ocean)
        oceanIdNameMap.set(ocean.id, ocean.name)
    }
}
let defaultData: Array<any> = [
    {
        id: 1,
        name: '水',
        itemId: 1000
    }, {
        id: 2,
        name: '硫酸',
        itemId: 1116
    }, {
        id: 3,
        name: '岩浆'
    }
]